QT+= core gui network opengl sql serialport
LIBS += -lopengl32
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl

TARGET = gl
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++20




SOURCES += \
    camera_hk.cpp \
    camera_qdialog.cpp \
    commonfunction.cpp \
    devicesizetable.cpp \
    dl_3.cpp \
    function.cpp \
    function_blob_9006.cpp \
    function_blob_size.cpp \
    function_dl.cpp \
    function_dl_3.cpp \
    function_dl_line_9007.cpp \
    function_dl_top.cpp \
    halcon_opencv.cpp \
    lightsource.cpp \
    login_dialog.cpp \
        main.cpp \
    mainwindow.cpp \
    my_table_widget.cpp \
    qt_hread_process.cpp \
    qwidget_tableview.cpp \
    save_image.cpp \
    sha.cpp \
    show_qlabel.cpp

HEADERS += \
    camera_hk.h \
    camera_qdialog.h \
    commonfunction.h \
    devicesizetable.h \
    dl_3.h \
    function.h \
    function_blob_9006.h \
    function_blob_size.h \
    function_dl.h \
    function_dl_3.h \
    function_dl_line_9007.h \
    function_dl_top.h \
    halcon_opencv.h \
    lightsource.h \
    login_dialog.h \
        mainwindow.h \
    my_table_widget.h \
    qt_graphics_shape_circle_rectangle.h \
    qt_graphics_shape_point.h \
    qt_graphics_shape_rectangle.h \
    qt_graphics_view.h \
    qt_graphics_view_image.h \
    qt_graphis_pixmap.h \
    qt_hread_process.h \
    qwidget_tableview.h \
    recipe_dialog.h \
    save_image.h \
    sha.h \
    show_qlabel.h





# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


INCLUDEPATH   += "d:/gl/opencv/build/include"
CONFIG(debug, debug|release){
LIBS += "d:/gl/opencv/build/x64/vc16/lib/opencv_world470d.lib"
}else{
LIBS += "d:/gl/opencv/build/x64/vc16/lib/opencv_world470.lib"
}

INCLUDEPATH   += "C:\\Program Files (x86)\\MVS\Development\\Includes"
LIBS += "C:\\Program Files (x86)\\MVS\\Development\\Libraries\\win64\\MvCameraControl.lib"

DEFINES += WIN32_LEAN_AND_MEAN
INCLUDEPATH += "d:/gl/libmodbus/include"
LIBS        += "d:/gl/libmodbus/lib/modbus.lib"

INCLUDEPATH += "d:/gl"

RC_ICONS = logo.ico

#INCLUDEPATH   += "C:\Users\gf125\AppData\Local\Programs\MVTec\HALCON-25.05-Progress\include"
#INCLUDEPATH   += "C:\Users\gf125\AppData\Local\Programs\MVTec\HALCON-25.05-Progress\include/halconcpp"
#LIBS          += "C:\Users\gf125\AppData\Local\Programs\MVTec\HALCON-25.05-Progress\lib\x64-win64/halconcppxl.lib"

INCLUDEPATH   += "d:\gl\halcon\include"
INCLUDEPATH   += "d:\gl\halcon\include/halconcpp"
LIBS          += "d:\gl\halcon\lib\halconcppxl.lib"

DISTFILES += \
    aoi.vcxproj.user

DISTFILES += \
    smt.vcxproj.user
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teExTypes)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teInTypes)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teInTypesDataRegistration)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teDataRegistration\3rd_party)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowEngine)

    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\teAiFlow_GraphicsView)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\VariantStreamStatistics)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\Global)
    INCLUDEPATH +=$$quote(C:\TruthEye\TeAiFlow\Development\include\teAiFlowGui_Qt\3rd_party)


    win32:CONFIG(debug, debug|release): {
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teExTypesd.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesd.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesDataRegistrationd.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teDataRegistrationd.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowEngined.lib)

        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowGui_Qtd.lib)
    }
    else:win32:CONFIG(release, debug|release): {
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teExTypes.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypes.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teInTypesDataRegistration.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teDataRegistration.lib)
        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowEngine.lib)

        LIBS+=$$quote(C:\TruthEye\TeAiFlow\Development\lib\teAiFlowGui_Qt.lib)
    }

INCLUDEPATH   += "d:/gl/CSerialPort/include"
CONFIG(debug, debug|release){
LIBS += "d:/gl/CSerialPort/lib/Debug/libcserialport.lib"
}else{
LIBS += "d:/gl/CSerialPort/lib/Release/libcserialport.lib"
}
